<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <%@ include file="/include/service-base-header.jsp" %>
    <style>
        .table tbody tr td, .table th {
            padding: 5px;
        }
    </style>
    <title>赛事中心</title>

</head>
<body>
<div class="wrapper">
    <jsp:include page="/include/left_menu.jsp">
        <jsp:param name="index" value="0"/>
    </jsp:include>
    <div class="main-panel">
        <nav class="navbar navbar-expand-lg navigation_shadow_none">
            <div class="container-fluid">
                <div class="navbar-wrapper b-navbar-wapper">
                    <a class="b-navbar-title-active" href="#">赛事管理</a>
                    <a class="b-navbar-title" href="${pageContext.request.contextPath}/s/event-manager.do">比赛管理</a>
                    <a class="b-navbar-title" href="${pageContext.request.contextPath}/s/tab-manager.do">标签管理</a>
                </div>
                <div class="nav-collapse justify-content-end">
                    <div class="toolbar_left">
                        <div class="form-inline" style="height: 1rem">
                            <div class="form-group form-group-0">
                                <select id="status_select" class="selectpicker"
                                        data-style="select-with-transition"
                                        title="赛事标签" data-size="7" tabindex="-98">
                                    <option class="bs-title-option" value="">赛事状态</option>
                                    <option value="">全部</option>
                                    <option value="0">已启用</option>
                                    <option value="1">已禁用</option>
                                </select>
                            </div>
                            <div class="form-group form-group-0">
                                <select id="tab_select" class="selectpicker" data-style="select-with-transition"
                                        title="赛事标签" data-size="7" tabindex="-98">
                                    <option class="bs-title-option" value="">赛事标签</option>
                                    <option value="">全部</option>
                                </select>
                            </div>
                            <div class="form-group form-group-1">
                                <input type="text" id="keyword" class="form-control mt-1" placeholder="搜索国家、赛事"
                                       style="border:0px;border-bottom:#a8a8a8 1px solid;background: transparent"/>

                                <button onclick="searchAction()" type="submit"
                                        class="btn btn-white btn-round btn-just-icon">
                                    <i class="material-icons">search</i>
                                    <div class="ripple-container"></div>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </nav>

        <div class="col-md-12">
            <div class="card card-plain">
                <div class="card-header card-header-primary">
                    <div class="card-title">赛事列表</div>
                    <p class="card-category">查询，禁用赛事，管理标签</p>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table">
                            <thead>
                            <tr>
                                <th class="text-primary">
                                    赛事ID
                                </th>
                                <th class="text-primary">
                                    赛事名称
                                </th>
                                <th class="text-primary">
                                    国家/组织
                                </th>
                                <th class="text-primary">
                                    赛事标签
                                </th>
                                <th class="text-primary">
                                    操作
                                </th>
                            </tr>
                            </thead>
                            <tbody id="tbody">

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <%--弹框开始--%>
            <div class="modal fade " id="loginModal" tabindex="-1">
                <div class="modal-dialog modal-login" role="document">
                    <div class="modal-content">
                        <div class="card card-signup card-plain">

                            <div class="modal-body">
                                <button type="button" class="close mt-4" data-dismiss="modal" aria-hidden="true"><i
                                        class="material-icons">clear</i></button>

                                <form class="form">
                                    <span id="tab_id" style="display: none"></span>
                                    <p class="description text-center mt-4">设置</p>
                                    <div class="card-body">
                                        <div class="tab-content">
                                            <table class="table">
                                                <span id="competition_span" style="display: none"></span>
                                                <tbody id="tab_table_body">
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="modal-footer justify-content-center">
                                <a onclick="saveTabs()" class="btn btn-primary btn-link btn-wd btn-lg">保存</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <%--弹框结束--%>
        </div>
        <nav aria-label="page">
            <ul class="pagination justify-content-center" id="p1">
            </ul>
        </nav>
    </div>
</div>

</body>
<script src="${pageContext.request.contextPath}/js/competition-manager.js"></script>
</html>